﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp3
{
    class Circle:Shape
    {
        private double radius;

        public double Radius
        {
            get{ return this.radius; }
            set { this.radius = value; }
        }
        public override void GetArea(double radius)
        {
            Console.WriteLine("请输入圆的半径");
            this.radius = double.Parse(Console.ReadLine());
            double area = 3.14 * radius;
            Console.WriteLine("圆的面积是"+area);
        }
    }
}
